
#include <iostream>
#include "cuda_runtime.h"

#include "info.h"


int main(int argc, char** argv)
{
    std::cout <<  "device count: " << device_count() << std::endl;
    std::cout <<  "driver version: " << get_driver_version() << std::endl;
    std::cout <<  "runtime version: " << get_runtime_version() << std::endl;

    cudaDeviceProp prop = get_device_prop(0);
    std::cout << "global memory size: " << get_global_memory_size(prop) << std::endl;
    std::cout << "sm number: " << get_sm_number(prop) << std::endl;
    std::cout << "shm size per sm: " << get_shm_size_per_sm(prop) << std::endl;
    std::cout << "regs per sm: " << get_register_size_per_sm(prop) << std::endl;
    std::cout << "warp size: " << get_warp_size(prop) << std::endl;
    std::cout << "max threads per block: " << get_max_threads_per_block(prop) << std::endl;
    std::cout << "max threads per sm: " << get_max_threads_per_sm(prop) << std::endl;
    std::cout << "memory bus width: " << get_memory_band_width(prop) << std::endl;
    return 0;
}